package jobs.ejb;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import jobs.ejb.facade.AbstractFacade;
import jobs.model.Grade;

/**
 * Fachada para el manejo de entidades
 *
 * @author Paul Tamayo
 */
@Stateless
public class GradeFacade extends AbstractFacade<Grade> {

    @PersistenceContext(unitName = "jobsPU")
    private EntityManager em;

    @Override
    protected EntityManager getEntityManager() {
        return em;
    }

    public GradeFacade() {
        super(Grade.class);
    }
}
